home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / browse2.zip / BROWSE2.TXT < prev    next >
Text File  |  1991-02-24  |  2KB  |  54 lines

  1.  
  2. 2/24/91
  3.  
  4. Technical notes on the modified BROWSE.COM
  5. -------------------------------------------
  6.  
  7. This .zip file contains a modified version of Charles Petzold's classic
  8. BROWSE.COM utility which originally appeared in PC Magazine, oh... years
  9. ago -- sometime in 1985 or '86.  The problem with the original BROWSE is
  10. that it was designed before VGA came along, and it assumed that if the
  11. video mode number known to BIOS was anything other than 0, 1, 2, 3 or 7,
  12. then the screen must be in a graphics mode, and therefore the program would
  13. quit immediately.
  14.  
  15. This modified version of BROWSE still doesn't handle graphics modes, but
  16. it does correct that once-true but now false assumption.  Super-VGA
  17. manufacturers have since gone off on their own, assigning BIOS video
  18. mode numbers to text modes which are way above even the highest standard-VGA
  19. graphics mode (as defined by IBM) of 13h.  Therefore, if your VGA card has a
  20. BIOS-supported text mode for 132x25, 132x44 or the like, which it designates
  21. with a mode number higher than 7, you can now use Mr. Petzold's BROWSE.COM
  22. in that mode.  How nice.
  23.  
  24. My modifications can be distinguished from Mr. Petzold's original ASM source
  25. code, in that they are all typed in UPPERCASE letters and separated from the
  26. main thread of the program with multiple semicolon marks in the left column...
  27.  
  28. ;;;
  29.  
  30. LIKE THIS!
  31.  
  32. ;;;
  33.  
  34.  
  35. Basically, here is what has been added:
  36.  
  37.   *  A few compares and conditional jumps to avoid slaughtering any of the
  38.      original code dealing with mode-number checks which are still valid
  39.      to some extent.
  40.  
  41.   *  If a VGA adapter is detected, check bit 0 of the graphics controller's
  42.      "Miscellaneous Register" at port 3CEh, index 6.  If this bit is set,
  43.      then the adapter is in a bona-fide graphics mode and we quit.
  44.  
  45.   *  Unrelated item but it always annoyed me:  Hide the cursor offscreen
  46.      while the BROWSEd text file is being displayed, and restore its position
  47.      again before exiting back to DOS.
  48.  
  49.  
  50. That's all, folks.  Enjoy.
  51.  
  52.  
  53.   -- Jerry ("G.A.") Monroe, CompuServe # 72321,1257 and PC-Ohio BBS.
  54.